#coding:gbk

from smartcard import *
from sct import *

def main():
    A = b("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001E1BA67F763BE011E766E7060F1B7DB4DA0A7C3A23495C583F5BD733375A8A613F4BEFC1B3BEA279C608863BD934B0A00DF6086D01F4901293C3F93844A52B38EEF120EFF24E7D5B68DE1F1503F40E49CD86EFCB40906F88FED0A6F5E53DE9ABC8C25EC45C5D")
    B = b("0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000339CBF8AD3C2910E6AC398FFA24A3951066ABBCF3006AD7DEBC84580E6B88605445ACA2A09D9B16BBDCA6C3A8BB17C7015D2B5826BAC1F60510997CE47898450D00D069554A9E9B88B7EA457F684D712D5FA448C0AFA32F9A55916A98AEF246E0EC2B7E48E934D9B90B4D02ED4842EC3C9CED013BC097166F80CB2A27BFC251189B23D7E7E76C43B8AC2FF776A394AD4B51D348F64A9B06ABD73EF54CA408F8661FF6A71502CEF9F0C049135BEB37A6FB560A318FAB")
    R = mplib_gcd(A, B)
    mplib_dump(R, 'R')


def main2():
    A = '\x01'
    B = '\x01'
    while True:
        C = mplib_add(A, B)
        A = B
        B = C
        if len(B) == 1024:
            break
    mplib_dump(A, 'A')
    mplib_dump(B, 'B')
    D = mplib_gcd(A, B)
    mplib_dump(D, 'D')

main2()

